<?php
/* @var $this SelisteController */
/* @var $model Seliste */
/* @var $form CActiveForm */
?>

<div class="wide form" id="form_search">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
	'htmlOptions'=>array('class'=>'form-horizontal','role'=>'form')
)); ?>

	<div class="form-group">
		<?php echo $form->label($model,'id',array("class"=>"col-lg-2 control-label")); ?>
		<div class="col-lg-9"><?php echo $form->textField($model,'id',array("class"=>"form-control")); ?></div>
	</div>

	<div class="form-group">
		<?php echo $form->label($model,'nom',array("class"=>"col-lg-2 control-label")); ?>
		<div class="col-lg-9"><?php echo $form->textField($model,'nom',array("class"=>"form-control")); ?></div>
	</div>
	
	<div class="form-group">
		<?php echo $form->label($model,'prenom',array("class"=>"col-lg-2 control-label")); ?>
		<div class="col-lg-9"><?php echo $form->textField($model,'prenom',array("class"=>"form-control")); ?></div>
	</div>
	
	<div class="form-group">
		<?php echo $form->label($model,'pseudo',array("class"=>"col-lg-2 control-label")); ?>
		<div class="col-lg-9"><?php echo $form->textField($model,'pseudo',array("class"=>"form-control")); ?></div>
	</div>
	
	<div class="form-group">
		<?php echo $form->label($model,'adr',array("class"=>"col-lg-2 control-label")); ?>
		<div class="col-lg-9"><?php echo $form->textField($model,'pseudo',array("class"=>"form-control")); ?></div>
	</div>
	
	<div class="form-group">
		<?php echo $form->label($model,'cp',array("class"=>"col-lg-2 control-label")); ?>
		<div class="col-lg-9"><?php echo $form->textField($model,'cp',array("class"=>"form-control")); ?></div>
	</div>
	
	<div class="form-group">
		<?php echo $form->label($model,'ville',array("class"=>"col-lg-2 control-label")); ?>
		<div class="col-lg-9"><?php echo $form->textField($model,'ville',array("class"=>"form-control")); ?></div>
	</div>
	
	<div class="form-group">
		<?php echo $form->label($model,'groupe',array("class"=>"col-lg-2 control-label")); ?>
		<div class="col-lg-9">
			<?php 
			$data = CHtml::listData(Groupe::model()->findAll(array('order'=>'lib asc')),
				'id', 
				'lib'
			);
			$vide =  array('0'=>'Tous les groupes');
			echo CHtml::dropDownList('Seliste[groupe]',0,$vide+$data,array("class"=>"form-control"));
			?>
		</div>
	</div>

	<div class="form-group">
		<div class="col-lg-offset-2 col-lg-10">
			<?php echo CHtml::submitButton('Rechercher',array("class"=>"btn btn-primary")); ?>
			<?php echo CHtml::button('Réinitialiser',array("class"=>"btn btn-info","id"=>"init-button")); ?>
		</div>
	</div>

<?php $this->endWidget(); ?>

</div><!-- search-form -->